<!--#include file="common/header.html"-->
<body>
<div class="row">
    <div class="col-xs-3 col-sm-3 col-md-3" style="padding-right: 0px;">
        <section class="panel panel-padding" style="padding: 20px;margin: 18px 10px 0px 0px;margin-left: 10px;">
            <!--#include file="common-tree.html"-->
        </section>
    </div>
    <div class="col-xs-9 col-sm-9 col-md-9">
        <!--#include file="productActivity.html"-->
    </div>
</div>

</body>
<script type="text/javascript">
    function getModule() {
        return 'activity';
    }
var oneList, gid;
    function afterChecked($item) {
        gid = $item.id;
        var k = $('#queryKeyword').val();
        $('#queryGroupId').val(gid);
        if(oneList == null){
            layui.use(['jquery', 'dtable', 'jqdate', 'jqform', 'upload'], function(exports) {
                var $ = layui.jquery,
                    list = layui.dtable,
                    form = layui.jqform;
                    oneList = new list();
                var p =$('#list-tpl').data('params');
                p.data = '_query.activityId='+ gid + '&_query.keyword=' + k;
                $('#list-tpl').data('params', JSON.stringify(p));
                oneList.init('list-tpl');
            });
        } else {
            restPost('/education/admin/productActivity', {'_query.activityId':gid, '_query.keyword':k}, function (rs) {
                oneList.loadData(rs, 1);
            });
        }
    }

</script>
</html>